import * as vscode from "vscode";

export function activate(context: vscode.ExtensionContext) {
	let disposable = vscode.commands.registerCommand(
		"extension.revealActiveFile",
		() => {
			const activeEditor = vscode.window.activeTextEditor;
			if (activeEditor) {
				vscode.commands.executeCommand(
					"workbench.files.action.showActiveFileInExplorer"
				);
			} else {
				vscode.window.showInformationMessage("没有找到当前活动文件");
			}
		}
	);

	context.subscriptions.push(disposable);
}

export function deactivate() {}
